package com.pengpai.pangucms.service;

import com.pengpai.pangucms.entity.SysUserRole;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户和角色关联表 服务类
 * </p>
 *
 * @author lijunjie
 * @since 2023-07-30
 */
public interface ISysUserRoleService extends IService<SysUserRole> {

    List<Map<String, Object>> getUserRoleByUid(Integer userId);

    void grantByUid(Long userId, List<String> roles);

}
